from pyecharts import GeoLines, Style

style = Style(
    title_top="#fff",
    title_pos = "center",
    title_text_size = 24,
    width=800,
    height=600,
    background_color="#36B5DE"
)
style_geo = style.add(
    is_label_show=False,
    line_curve=0.2,
    line_opacity=0.6,
    legend_text_color="#eee",
    legend_pos="right",
    geo_effect_symbol="arrow",
    geo_effect_symbolsize=10,
    label_color=['#a60000', '#a60000', '#46bee9'],
    #label_pos="right",
    #label_formatter="{b}",
    label_text_color="#eee",
    legend_selectedmode="single",
    geo_normal_color = "#77B37B",
)
data_guangzhou = [
    ["深圳", "儋州"]
]
data_beijing = [
    ["北京", "成都"],
    ["深圳", "成都"],
]
geolines = GeoLines("支教愿景", **style.init_style)
geolines.add("从深圳出发", data_guangzhou, **style_geo)
geolines.add("从北京深圳出发", data_beijing, **style_geo)
geolines.render()